<?php defined('BASEPATH') OR exit('No direct script access allowed');

// Code here is run before admin controllers
class User_Controller extends MY_Controller {

	public function User_Controller(){
		//session_start();
		parent::__construct();
		
		if(!$this->session->userdata('user')) {
			redirect('login/user');
		}
		
		//Call Theme
		$this->template->set_theme(DEFAULT_THEME)
			 	   ->set_partial('header', 'partials/header_user.html')
	 			   ->set_partial('footer', 'partials/footer.html')
				   ->set_layout('default.html');
			  
	}

}